package com.mapper;

import com.pojo.SysUser;
import com.pojo.TSysUser;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface TSysUserMapper {

    TSysUser login(@Param("loginName")String loginName, @Param("password")String password);

    List<TSysUser> list(@Param("begin")Integer begin, @Param("size")Integer size, @Param("loginName") String loginName, @Param("userName")String userName);

    int count( @Param("loginName") String loginName, @Param("userName")String userName);
    int add(TSysUser tsysUser);

    TSysUser selectId(Integer userId);

    int del(Integer userId);

    int edit(TSysUser tsysUser);

    int selectByAccount(String loginName);

}
